package cn.good.vo;

import io.swagger.annotations.ApiModelProperty;

public class TokenVo {
    /**
     * 用户认证凭据
     */
    @ApiModelProperty("用户认证凭据")
    private String token;
    /**
     * 用户认证简易票据
     */
    @ApiModelProperty("用户认证简易票据")
    private String ticket;
    /**
     * 过期时间
     */
    @ApiModelProperty("过期时间，单位：毫秒")
    private long expTime;
    /**
     * 生成时间
     */
    @ApiModelProperty("生成时间，单位：毫秒")
    private long genTime;

    public TokenVo(){}

    public TokenVo(String token, Long expTime, Long genTime){
        this.setToken(token);
        this.setExpTime(expTime);
        this.setGenTime(getGenTime());
    };

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public long getExpTime() {
        return expTime;
    }

    public void setExpTime(long expTime) {
        this.expTime = expTime;
    }

    public long getGenTime() {
        return genTime;
    }

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public void setGenTime(long genTime) {
        this.genTime = genTime;
    }
}
